package com.cskaoyan.demo11.mapper;

import com.cskaoyan.demo11.model.CskaoyanUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CskaoyanUserMapper {
    // if标签来做根据年龄的查询
    List<CskaoyanUser> selectByAgeIf(@Param("age") Integer age);

    // choose-when-otherwise标签来做
    List<CskaoyanUser> selectByAgeChooseWhenOtherwise(@Param("age") Integer age);

}
